<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: function.outerContainer.php 360 2013-11-27 09:09:10Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 360 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-11-27 09:09:10 +0000 (Wed, 27 Nov 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */
function smarty_function_outerContainer($V4e2242f2=array(), &$V17b168dc) {
  global $db;
  $V811882fe='';$V7c4f2940='';$Vb28354b5='';$V71f262d7='';	$V9c39f2b6=true;
  if(BOXLESS_CHECKOUT=='true'&&strstr($_SERVER['PHP_SELF'],FILENAME_SHOPPING_CART))$V9c39f2b6=false;if(PRODUCT_ID > 0 && $V9c39f2b6){$V83878c91=$db->db_query("SELECT products_col_top,products_col_left,products_col_right,products_col_bottom FROM ".TABLE_PRODUCTS." WHERE products_id='".intval(PRODUCT_ID)."'",true);if($V83878c91->fields['products_col_left']=='1')$V811882fe='_left';if($V83878c91->fields['products_col_right']=='1')$V7c4f2940='_right';if($V83878c91->fields['products_col_top']=='1')$Vb28354b5='_top';if($V83878c91->fields['products_col_bottom']=='1')$V71f262d7='_bottom';return'<div id="outerContainer'.$V811882fe.$V7c4f2940.$Vb28354b5.$V71f262d7.'" class="outer_container">';}elseif(CONTENT_ID>0&& $V9c39f2b6){$V4a8a08f0=$db->db_query("SELECT content_col_top,content_col_left,content_col_right,content_col_bottom FROM ".TABLE_CONTENT_MANAGER." WHERE content_group='".intval(CONTENT_ID)."'",true);if($V4a8a08f0->fields['content_col_left']=='1')$V811882fe='_left';if($V4a8a08f0->fields['content_col_right']=='1')$V7c4f2940='_right';if($V4a8a08f0->fields['content_col_top']=='1')$Vb28354b5='_top';if($V4a8a08f0->fields['content_col_bottom']=='1')$V71f262d7='_bottom';return '<div id="outerContainer'.$V811882fe.$V7c4f2940.$Vb28354b5.$V71f262d7.'" class="outer_container">';}elseif(CAT_ID>0){$Vb0b14ca0=explode('_',CAT_ID);$V5435c69e=$db->db_query("SELECT categories_col_top,categories_col_left,categories_col_right,categories_col_bottom FROM ".TABLE_CATEGORIES." WHERE categories_id='".intval(end($Vb0b14ca0))."'",true);if($V5435c69e->fields['categories_col_left']=='1')$V811882fe='_left';if($V5435c69e->fields['categories_col_right']=='1')$V7c4f2940='_right';if($V5435c69e->fields['categories_col_top']=='1')$Vb28354b5='_top';if($V5435c69e->fields['categories_col_bottom']=='1')$V71f262d7='_bottom';return '<div id="outerContainer'.$V811882fe.$V7c4f2940.$Vb28354b5.$V71f262d7.'" class="outer_container">';}elseif(!((strstr($_SERVER['PHP_SELF'],FILENAME_SHOPPING_CART)||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_SHIPPING)||(strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT) || (strstr($_SERVER['REQUEST_URI'],FILENAME_CHECKOUT)))||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_CONFIRMATION)||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_PAYMENT) ||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_PAYMENT_ADDRESS)||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_SHIPPING_ADDRESS)||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_PAYMENT_ADDRESS)||strstr($_SERVER['PHP_SELF'],FILENAME_CHECKOUT_SUCCESS))&&isset($_SESSION['customer_id'])&& BOXLESS_CHECKOUT=='true'&&BLOG_STAND_ALONE=='true')){if(GLOBAL_COLUMN_TOP==1)$Vb28354b5='_top';if(GLOBAL_COLUMN_LEFT==1)$V811882fe='_left';if(GLOBAL_COLUMN_RIGHT==1)$V7c4f2940='_right';if(GLOBAL_COLUMN_BOTTOM==1)$V71f262d7='_bottom';return '<div id="outerContainer'.$V811882fe.$V7c4f2940.$Vb28354b5.$V71f262d7.'" class="outer_container">';}elseif(BLOG_STAND_ALONE=='true'&&(BLOG_CAT>0||BLOG_ITEM>0||IS_BLOG=='true')){return '<div id="outerContainer_left_top_bottom" class="outer_container">';}else return '<div id="outerContainer_top_bottom" class="outer_container">';}